package User;
import BookMethods.*;

import java.util.Scanner;

public class AdminUser extends User{//管理员用户

    public BookMethods[] methods= new BookMethods[]{
            new ExitMethod(),
            new ShowMethod(),
            new AddMethod(),
            new ReviseMethod(),
            new DeleteMethod()
    };

    public AdminUser(String nameUser) {
        super(nameUser);
    }

    public BookMethods[] getMethods() {
        return methods;
    }

    public int menu() {
        System.out.println("欢迎" + this.userName + "进入图书管理系统");
        System.out.println("1. 展示图书");
        System.out.println("2. 添加图书");
        System.out.println("3. 修改信息");
        System.out.println("4. 删除图书");
        System.out.println("0. 退出系统");
        System.out.println("**************");

        Scanner scanner = new Scanner(System.in);

        int choice = scanner.nextInt();

        return choice;
    }
}
